package activitiShare.two;


// 模拟 CommandExecutor 实现
public class SimpleCommandExecutor {
    public <T> T execute(Command<T> command) {
        System.out.println(">>> 开始执行命令...");
        T result = command.execute();
        System.out.println(">>> 命令执行完毕。");
        return result;
    }


}
